{% extends "base.html" %}

{% block title %}个人主页 - {{ super() }}{% endblock %}

{% block content %}
<div class="row">
    <!-- 左侧个人信息 -->
    <div class="col-md-4">
        <div class="card mb-4">
            <div class="card-body text-center">
                <img src="https://img.picui.cn/free/2025/06/07/684420b9b1cd7.jpg" 
                     alt="张驰" class="rounded-circle mb-3" width="150" height="150">
                <h3 class="card-title">张驰</h3>
                <p class="text-muted">信息管理与信息系统专业</p>
                <p class="text-muted">学号：js22150332</p>
                <hr>
                <div class="d-grid gap-2">
                    <a href="{{ url_for('main_bp_zc.index') }}" class="btn btn-outline-primary">
                        <i class="fas fa-home"></i> 返回首页
                    </a>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 右侧内容区 -->
    <div class="col-md-8">
        {% for section in sections %}
            <div class="card mb-4" id="{{ section.section_key }}">
                {% if section.cover_image_url %}
                    <img src="{{ section.cover_image_url }}" class="card-img-top" alt="{{ section.section_title }}"
                         style="height: 200px; object-fit: cover;">
                {% endif %}
                <div class="card-body">
                    <h4 class="card-title">{{ section.section_title }}</h4>
                    <p class="card-text">{{ section.section_content }}</p>
                </div>
            </div>
        {% endfor %}
    </div>
</div>
{% endblock %} 